import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsEnum, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { FileGroup } from "common/utils/data";

export class FileCreateUploadTokenDto {
  @IsNotEmpty()
  @ApiProperty({
    description: '文件分组',
  })
  @IsEnum(FileGroup)
  group: FileGroup;

  @IsNotEmpty()
  @ApiProperty({
    description: '文件名',
  })
  @IsString()
  filename: string;
}
